package com.cyz.common.mapper;

import com.cyz.common.bean.Role;
import com.cyz.common.bean.UserRole;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
* @author 34928
* @description 针对表【user_role(用户和角色关联表)】的数据库操作Mapper
* @createDate 2023-02-24 08:58:49
* @Entity com.cyz.bean.UserRole
*/
public interface UserRoleMapper extends BaseMapper<UserRole> {

    List<Role> getRolesByUserId(Integer id);

    void removeById(Integer id);

    void save(UserRole userRole);
}




